<%@page import="java.util.ArrayList"%>
<%@page import="java.util.List"%>
<%
	String username = request.getParameter("user");
	out.println("username: " + username);
	List<String> users = (List<String>) session.getAttribute("users");

	if (null == users) {
		users = new ArrayList<String>();
	}
	users.add(username);
	session.setAttribute("users", users);
	session.setAttribute("lastUser", username);
	response.sendRedirect("index.jsp");
%>